package com.ruoyi.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 合同对象 bus_contract
 * 
 * @author ruoyi
 * @date 2021-09-02
 */
public class BusContract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 合同id */
    private Long contractId;

    /** 客户id */
    @Excel(name = "客户id")
    private Long customerId;

    /** 合同编号 */
    @Excel(name = "合同编号")
    private String contractNo;

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    /** 负责人 */
    @Excel(name = "负责人")
    private String director;

    /** 合同金额 */
    @Excel(name = "合同金额")
    private BigDecimal contractSum;

    /** 交货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryDate;

    /** 开启提醒(1:是 0:否) */
    @Excel(name = "开启提醒(1:是 0:否)")
    private String openRemind;

    /** 完工进度 */
    @Excel(name = "完工进度")
    private String completeType;

    public void setContractId(Long contractId) 
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setContractNo(String contractNo) 
    {
        this.contractNo = contractNo;
    }

    public String getContractNo() 
    {
        return contractNo;
    }
    public void setDirector(String director) 
    {
        this.director = director;
    }

    public String getDirector() 
    {
        return director;
    }
    public void setContractSum(BigDecimal contractSum) 
    {
        this.contractSum = contractSum;
    }

    public BigDecimal getContractSum() 
    {
        return contractSum;
    }
    public void setDeliveryDate(Date deliveryDate) 
    {
        this.deliveryDate = deliveryDate;
    }

    public Date getDeliveryDate() 
    {
        return deliveryDate;
    }
    public void setOpenRemind(String openRemind) 
    {
        this.openRemind = openRemind;
    }

    public String getOpenRemind() 
    {
        return openRemind;
    }
    public void setCompleteType(String completeType) 
    {
        this.completeType = completeType;
    }

    public String getCompleteType() 
    {
        return completeType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("contractId", getContractId())
            .append("customerId", getCustomerId())
            .append("contractNo", getContractNo())
            .append("projectName", getProjectName())
            .append("director", getDirector())
            .append("contractSum", getContractSum())
            .append("deliveryDate", getDeliveryDate())
            .append("openRemind", getOpenRemind())
            .append("completeType", getCompleteType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
